import 'package:flutter_shop/pay/alipay/ali_pay_result_data.dart';

aliPayResultDataFromJson(AliPayResultData data, Map<String, dynamic> json) {
	if (json['memo'] != null) {
		data.memo = json['memo']?.toString();
	}
	if (json['result'] != null) {
		data.result = json['result']?.toString();
	}
	if (json['resultStatus'] != null) {
		data.resultStatus = json['resultStatus']?.toString();
	}
	if (json['platform'] != null) {
		data.platform = json['platform']?.toString();
	}
	return data;
}

Map<String, dynamic> aliPayResultDataToJson(AliPayResultData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['memo'] = entity.memo;
	data['result'] = entity.result;
	data['resultStatus'] = entity.resultStatus;
	data['platform'] = entity.platform;
	return data;
}